import {
  Reducer,
  combineReducers 
} from 'redux';
import {
  UsersState,
  UsersReducer
} from './UsersReducer.ts';
export * from './UsersReducer.ts';

export interface AppState {
  users: UsersState;
}

// 组合reductor
const rootReducer: Reducer<AppState> = combineReducers<AppState>({
  users: UsersReducer
});

export default rootReducer;